package com.app.micaihu.view.army.adapter

import android.widget.ImageView
import com.app.micaihu.R
import com.app.micaihu.view.bean.ArmyDetail
import com.app.micaihu.view.utils.loadImage
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * 军团荣誉 适配器
 */
class ArmyHonourListAdapter : BaseQuickAdapter<ArmyDetail.Honour, BaseViewHolder>(R.layout.army_honour_list_item) {

    override fun convert(holder: BaseViewHolder, item: ArmyDetail.Honour) {
        holder.getView<ImageView>(R.id.ivHonourIcon).loadImage(item.icon)
        holder.setText(R.id.tvTitle, item.name)
    }
}